class ChangeAuthors < ActiveRecord::Migration
  def self.up
    remove_column :authors, :birth_date
    remove_column :authors, :death_date
    remove_column :authors, :cataloged

    add_column :authors, :birth_date, :integer
    add_column :authors, :death_date, :integer
    add_column :authors, :catalog_state_id, :integer
  end

  def self.down
    remove_column :authors, :birth_date
    remove_column :authors, :death_date
    remove_column :authors, :catalog_state_id

    add_column :authors, :birth_date, :date
    add_column :authors, :death_date, :date
    add_column :authors, :cataloged, :boolean
  end
end
